package com.imooc.miaosha.redis;

/**
 * @author liyuhui
 */
public class GoodsKey extends BasePrefix{

    private GoodsKey(int expireSeconds, String prefix) {
        super(expireSeconds, prefix);
    }

    //页面的缓存时间不宜过长
    public static GoodsKey getGoodsList = new GoodsKey(60, "gl");
    public static GoodsKey getGoodsDetail = new GoodsKey(60, "gd");

    //秒杀商品
    public static GoodsKey getMiaoshaGoodsStock= new GoodsKey(0, "gs");

}

